<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>信工二手淘</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="referrer" content="no-referrer">
    <!--Loading bootstrap css-->
    <!--  <link type="text/css" rel="stylesheet" href="http://fonts.useso.com/css?family=Open+Sans:400italic,400,300,700">
      <link type="text/css" rel="stylesheet" href="http://fonts.useso.com/css?family=Oswald:400,700,300">-->
    <link type="text/css" rel="stylesheet" href="/static/demo/styles/jquery-ui-1.10.4.custom.min.css">
    <link type="text/css" rel="stylesheet" href="/static/demo/styles/font-awesome.min.css">
    <link type="text/css" rel="stylesheet" href="/static/demo/styles/bootstrap.min.css">
    <link type="text/css" rel="stylesheet" href="/static/demo/styles/animate.css">
    <link type="text/css" rel="stylesheet" href="/static/demo/styles/all.css">
    <link type="text/css" rel="stylesheet" href="/static/demo/styles/main.css">
    <link type="text/css" rel="stylesheet" href="/static/demo/styles/style-responsive.css">
    <link type="text/css" rel="stylesheet" href="/static/demo/styles/zabuto_calendar.min.css">
    <link type="text/css" rel="stylesheet" href="/static/demo/styles/pace.css">
    <link type="text/css" rel="stylesheet" href="/static/demo/styles/jquery.news-ticker.css">
</head>

<style>
    td {
        height: 100px;
    }
</style>
<body>
<div>
    <!--BEGIN TOPBAR-->
    <div id="header-topbar-option-demo" class="page-header-topbar">
        <nav id="topbar" role="navigation" style="margin-bottom: 0;" data-step="3"
             class="navbar navbar-default navbar-static-top">
            <div class="navbar-header">
                <button type="button" data-toggle="collapse" data-target=".sidebar-collapse" class="navbar-toggle">
                    <span class="sr-only">Toggle navigation</span><span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a id="logo" class="navbar-brand">
                    <span class="fa fa-rocket"></span>
                    <span class="logo-text">信工二手淘</span>
                    <span style="display: none" class="logo-text-icon"></span>
                </a>
            </div>
            <div class="topbar-main"><a id="menu-toggle" href="#" class="hidden-xs"><i class="fa fa-bars"></i></a>

                <form id="topbar-search" action="" method="" class="hidden-sm hidden-xs">
                    <div class="input-icon right text-white"><a href="#"><i class="fa fa-search"></i></a><input
                            type="text" placeholder="Search here..." class="form-control text-white"/></div>
                </form>
            </div>
        </nav>
    </div>
    <!--END TOPBAR-->
    <div id="wrapper">
        <!--BEGIN SIDEBAR MENU-->
        <nav id="sidebar" role="navigation" data-step="2"
             data-intro="Template has &lt;b&gt;many navigation styles&lt;/b&gt;"
             data-position="right" class="navbar-default navbar-static-side">
            <div class="sidebar-collapse menu-scroll">
                <ul id="side-menu" class="nav">

                    <div class="clearfix"></div>
                    <li><a href="/index/toIndex"><i class="fa fa-home">
                        <div class="icon-bg bg-orange"></div>
                    </i><span class="menu-title">首页详情</span></a>
                    </li>
                    <li class="active"><a href="/index/productinfo/1/all">
                        <i class="fa fa-briefcase">
                            <div class="icon-bg bg-green"></div>
                        </i><span class="menu-title">市场管理</span></a>
                    </li>
                    <li><a href="/index/rentinfo/1">
                        <i class="fa fa-money">
                            <div class="icon-bg bg-green"></div>
                        </i><span class="menu-title">租赁管理</span></a>
                    </li>
                    <li>
                        <a href="/index/userinfo/1">
                            <i class="fa fa-user">
                                <div class="icon-bg bg-pink"></div>
                            </i><span class="menu-title">用户管理</span></a>
                    </li>
                    <li>
                        <a href="">
                            <i class="fa fa-edit">
                                <div class="icon-bg bg-pink"></div>
                            </i><span class="menu-title">首页轮播修改</span></a>
                    </li>
                    <li>
                        <a href="">
                            <i class="fa fa-delicious">
                                <div class="icon-bg bg-pink"></div>
                            </i><span class="menu-title">用户留言删除</span></a>
                    </li>
                    <li>
                        <a href="">
                            <i class="fa fa-check-square">
                                <div class="icon-bg bg-pink"></div>
                            </i><span class="menu-title">投诉建议</span></a>
                    </li>
                    </li>
                    <li><a href="/toLogin"><i class="fa fa-arrow-circle-right">
                        <div class="icon-bg bg-green"></div>
                    </i><span class="menu-title">返回登录</span></a>

                    </li>
                </ul>
            </div>
        </nav>
        <!--END SIDEBAR MENU-->

        <!--BEGIN PAGE WRAPPER-->
        <div id="page-wrapper">
            <!--BEGIN TITLE & BREADCRUMB PAGE-->
            <div id="title-breadcrumb-option-demo" class="page-title-breadcrumb">
                <div class="page-header pull-left">
                    <div class="page-title">
                        <span style="font-size: 24px;" th:text="'当前登录用户是：'+${session.nowUser.username}"></span>
                    </div>
                </div>
                <ol class="breadcrumb page-breadcrumb pull-right">
                    <li><i class="fa fa-home"></i>&nbsp;<a>主页</a>&nbsp;&nbsp;
                        <i class="fa fa-angle-right"></i>&nbsp;&nbsp;
                    </li>
                </ol>
                <div class="clearfix">
                </div>
            </div>
            <!--END TITLE & BREADCRUMB PAGE-->
            <!--BEGIN CONTENT-->
            <div class="page-content">
                <div class="row">
                    <div class="row">
                        <div class="row">
                            <div style="margin-bottom: 20px" class="col-lg-12">
                                <h3 style="margin-bottom: 20px;" class="list-group-item list-group-item-info">分类查询</h3>
                                <span class="col-lg-1" th:each="type:${types}">
                                <a class="btn btn-warning" th:text="${type.product}"
                                   th:href="'/index/productinfo/1/'+ ${type.product}"></a>
                            </span>
                            </div>
                        </div>
                        <div class="panel-body pan">

                            <form action="/index/productinfoSearch/1" class="form-horizontal">
                                <div class="form-group">
                                    <label>选择筛选类型</label>
                                    <select name="searchType">
                                        <option value="订单号">订单号</option>
                                        <option value="商品名">商品名</option>
                                        <option value="用户名">用户名</option>
                                    </select>
                                    <input type="text" name="value">

                                    <button type="submit" class="ui-button-text-icon-primary">
                                        搜索
                                    </button>
                                </div>
                            </form>
                        </div>
                        <div class="col-lg-12">
                            <div class="panel panel-dark">
                                <div class="panel-heading"><h3 th:text="'你好，'+${session.nowUser.username}"></h3>
                                    <h4 th:text="'你的权限是 '+${session.nowUser.power}"></h4>
                                </div>
                                <div class="panel-body">
                                    <table class="table table-hover table-bordered">
                                        <thead>
                                        <tr style="font-size: 12px;">
                                            <th>id</th>
                                            <th>商品标题</th>
                                            <th>商品内容</th>
                                            <th>商品数量</th>
                                            <th>商品类别</th>
                                            <th>商品价格</th>
                                            <th>商品原价</th>
                                            <th>发布时间</th>
                                            <th>商品图片</th>
                                            <th>发布者微信识别Id</th>
                                            <th>发布者微信头像</th>
                                            <th>发布者微信昵称</th>
                                            <th>发布人QQ号</th>
                                            <th>是否有发票-1有，0无</th>
                                            <th>最后操作时间</th>
                                            <th>是否上架-1上，0下</th>
                                            <th>操作</th>
                                        </tr>
                                        </thead>
                                        <tbody>
                                        <tr th:each="product:${productlist}" height="50px">
                                            <td th:text="${product.id}">id</td>
                                            <td th:text="${product.title}">商品标题(Title)</td>
                                            <td th:text="${product.content}">商品内容(Content)</td>
                                            <td th:text="${product.txtqty}">商品数量(TxtQty)</td>
                                            <td th:text="${product.product}">商品类别(Product)</td>
                                            <td th:text="${product.price}">商品价格(Price)</td>
                                            <td th:text="${product.preprice}">商品原价(PrePrice)</td>
                                            <td th:text="${#dates.format(product.time,'yyyy-MM-dd HH:mm:ss')}">
                                                发布时间(Time)
                                            </td>
                                            <td>
                                                <div th:each="imgbean:${imglist.get(productStat.index)}">
                                                    <img th:src="'http://www.hiwanda.cn/ErTaos2XinGong/amz_9_bbt/'+${imgbean.path}"
                                                         height="60px" alt="">
                                                </div>
                                            </td>
                                            <td th:text="${product.openid}" style="font-size: 8px;">发布者微信识别Id(OpenId)
                                            </td>
                                            <td><img th:src=" ${product.headimgurl}" height="60px"></td>
                                            <td th:text="${product.nickname}">发布者微信昵称(NickName)</td>
                                            <td th:text="${product.qq}">发布人QQ号(Qq)</td>
                                            <td th:text="${product.fapiao}==1?'有发票':'无发票'"></td>
                                            <td th:text="${#dates.format(product.lasttime,'yyyy-MM-dd HH:mm:ss')}">
                                                最后操作时间(LastTime)
                                            </td>
                                            <td th:text="${product.active}==1?'已上架':'已下架'"></td>
                                            <td><a th:href="'/index/editproduct/'+${product.id}" class="btn btn-info"
                                                   target="_blank">修改</a>
                                                <a th:href="'/index/deleteproduct/'+${product.id}"
                                                   class="btn btn-danger">删除</a></td>
                                        </tr>
                                        </tbody>
                                    </table>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <center>
                            <ul class="pagination">
                                <li th:each="NowPage:${productpage.getNavigatepageNums()}"
                                    th:class="${NowPage}==${productpage.pageNum}?'active':' '">
                                    <a th:text="${NowPage}"
                                       th:href="'/index/productinfo/'+${NowPage} + '/'+${nowtype}">当前页数加粗</a>
                                </li>
                            </ul>
                        </center>
                    </div>
                </div>
                <!--END CONTENT-->
            </div>
            <!--END PAGE WRAPPER-->
        </div>
    </div>
</div>
</body>
<script src="/static/demo/script/jquery-1.10.2.min.js"></script>
<script src="/static/demo/script/jquery-migrate-1.2.1.min.js"></script>
<script src="/static/demo/script/jquery-ui.js"></script>
<script src="/static/demo/script/bootstrap.min.js"></script>
<script src="/static/demo/script/bootstrap-hover-dropdown.js"></script>
<script src="/static/demo/script/html5shiv.js"></script>
<script src="/static/demo/script/respond.min.js"></script>
<script src="/static/demo/script/jquery.metisMenu.js"></script>
<script src="/static/demo/script/jquery.slimscroll.js"></script>
<script src="/static/demo/script/jquery.cookie.js"></script>
<script src="/static/demo/script/icheck.min.js"></script>
<script src="/static/demo/script/custom.min.js"></script>
<script src="/static/demo/script/jquery.news-ticker.js"></script>
<script src="/static/demo/script/jquery.menu.js"></script>
<script src="/static/demo/script/pace.min.js"></script>
<script src="/static/demo/script/holder.js"></script>
<script src="/static/demo/script/responsive-tabs.js"></script>
<script src="/static/demo/script/zabuto_calendar.min.js"></script>

<script src="https://img.hcharts.cn/highcharts/highcharts.js"></script>
<script src="https://img.hcharts.cn/highcharts/modules/exporting.js"></script>
<script src="https://img.hcharts.cn/highcharts-plugins/highcharts-zh_CN.js"></script>
<!--CORE JAVASCRIPT-->
<script src="/static/demo/script/main.js"></script>

</html>